//
//  ViewController.m
//  06-CycleImages
//
//  Created by 李昊林 on 16/7/21.
//  Copyright © 2016年 李昊林. All rights reserved.
//

#import "ViewController.h"
#import "HLCycleImages.h"
#define FRAME [UIScreen mainScreen].bounds
#define WIDTH FRAME.size.width
#define HEIGHT FRAME.size.height
#define kWidth kScreenBounds.size.width
#define kHeight kScreenBounds.size.height

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    HLCycleImages *cycle = [[HLCycleImages alloc] initWithFrame:CGRectMake(10, 10,WIDTH, 100)];
    [self.view addSubview:cycle];
    NSArray *array = @[@"0.jpg",@"1.jpg",@"2.jpg",@"3.jpg",@"4.jpg"];
    [cycle setImageArray:array];
    cycle.cycleScrollView.showsHorizontalScrollIndicator = YES;
    [self.view addSubview:cycle];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
